package com.spzx.manager.mapper;

import com.spzx.model.dto.system.SysRoleDto;
import com.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2023/12/11 22:06
 */
@Mapper
public interface SysRoleMapper {
    //角色添加
    public abstract void saveSysRole(SysRole sysRole);

    //角色列表查找
    public abstract List<SysRole> findByPage(SysRoleDto sysRoleDto);

    //角色修改
    public abstract void updateSysRole(SysRole sysRole);

    //角色删除
    public abstract void deleteById(Long roleId);

    //查询所有用户角色
    public abstract List<SysRole> findAllRoles();
}
